#!/usr/bin/ipython3


def fib():
    a, b = 0, 1
    while True:
        yield a
        a, b = b, a + b


fib_gen = fib()
for _ in range(10):
    next(fib_gen)
